package it.fuzzylogics.fuzzywidgetsLibrary.client.FuzzyResizableCell;

import com.google.gwt.user.client.ui.Widget;

/**
 * **************************************************************************
 * Copyright [2008] [fuzzylogics]                                            *
 * *
 * Licensed under the Apache License, Version 2.0 (the "License");           *
 * you may not use this file except in compliance with the License.          *
 * You may obtain a copy of the License at                                   *
 * *
 * http://www.apache.org/licenses/LICENSE-2.0                            *
 * *
 * Unless required by applicable law or agreed to in writing, software       *
 * distributed under the License is distributed on an "AS IS" BASIS,         *
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  *
 * See the License for the specific language governing permissions and       *
 * limitations under the License.                                            *
 * ****************************************************************************
 */


public class FCell {
    private Widget widget;
    private double colIndex;
    private double rowIndex;
    private double numCols;
    private double numRows;

    public FCell() {
        widget = null;
        colIndex = 0;
        rowIndex = 0;
        numCols = 0;
        numRows = 0;
    }


    public FCell(Widget widget, int colIndex, int rowIndex, int numCols, int numRows) {
        this.widget = widget;
        this.colIndex = colIndex;
        this.rowIndex = rowIndex;
        this.numCols = numCols;
        this.numRows = numRows;
    }

    public void setWidget(Widget widget) {
        this.widget = widget;
    }

    public void setColIndex(double colIndex) {
        this.colIndex = colIndex;
    }

    public void setRowIndex(double rowIndex) {
        this.rowIndex = rowIndex;
    }

    public void setNumCols(double numCols) {
        this.numCols = numCols;
    }

    public void setNumRows(double numRows) {
        this.numRows = numRows;
    }

    public Widget getWidget() {
        return this.widget;
    }

    public double getColIndex() {
        return this.colIndex;
    }

    public double getRowIndex() {
        return this.rowIndex;
    }

    public double getNumCols() {
        return this.numCols;
    }

    public double getNumRows() {
        return this.numRows;
    }


}
